module.exports = function (grunt) {
  // Project Configuration
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    less: {
      // css: {
      //   options: {
      //     compress: true
      //   },
      //   files: {
      //     './assets/css/theme.css': './assets/less/theme.less'
      //   }
      // },
      compile: {
        src: './assets/less/theme.less',
        dest: './assets/css/theme.css'
      }
    },
    watch: {
      styles: {
        files: ['assets/less/**/*.less'],
        tasks: ['less'],
        options: {
          nospawn: true
        }
      }
    }
  });

  // Load the plugin that compiles less to css
  grunt.loadNpmTasks('grunt-contrib-less');

  // Load the plugin that watches file changes
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default tasks
  grunt.registerTask('default', ['less']);
}
